/*
 * led.h
 *
 *  Created on: 29/gen/2014
 *      Author: Postazione Embedded
 */

#ifndef _LEDS_H_
#define _LEDS_H_

#include "../gpio/gpio.h"

#define GPIOLED GPIOD
#define RCC_AHB1Periph_GPIOLED RCC_AHB1Periph_GPIOD

#define LED_0 GPIO_Pin_12
#define LED_1 GPIO_Pin_13
#define LED_2 GPIO_Pin_14
#define LED_3 GPIO_Pin_15

static const uint16_t LEDS = LED_0 | LED_1 | LED_2 | LED_3;
static const uint16_t LED[4] = {GPIO_Pin_12, GPIO_Pin_13, GPIO_Pin_14, GPIO_Pin_15};


void gpioLedsConfiguration();
void writeLeds(uint16_t ledValues);
void toggleLeds(uint16_t ledMask);


#endif /* LED_H_ */
